package com.eascs.ant.home.controller;

import javax.inject.Inject;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.eascs.ant.common.controller.BaseMasterViewController;
import com.eascs.ant.data.entity.authority.AccountAuthority;
import com.eascs.ant.data.service.CommonService;
import com.eascs.site.view.ViewContext;

@Controller
public class HomeIndexController extends BaseMasterViewController {

	@Inject
	CommonService commonService;
	
	@RequestMapping("/home")
	public String home() {
		AccountAuthority authority = commonService.getAccountAuthority();
		ViewContext.put("authority", authority);
		return "home/index";
	}

}
